package com.mhc.suzuki.manager;

import com.subaru.common.query.PageResult;
import com.mhc.suzuki.dal.model.DealerInfoDO;
import com.mhc.suzuki.dal.query.DealerInfoQuery;

import java.util.List;


/**
 * Manager for DealerInfo.
 */
public interface DealerInfoManager {
    /**
     * query count by query condition.
     */
    int countByQuery(DealerInfoQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(DealerInfoQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(DealerInfoDO record);

    /**
     * insert selective.
     */
    long insertSelective(DealerInfoDO record);

    /**
     * select by query condition.
     */
    List<DealerInfoDO> selectByQuery(DealerInfoQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<DealerInfoDO> selectByQueryWithPage(DealerInfoQuery query);

    /**
     * select by primary key.
     */
    DealerInfoDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( DealerInfoDO record,  DealerInfoQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(DealerInfoDO record, DealerInfoQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(DealerInfoDO record);
}